package com.bingo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bingo.common.R;
import com.bingo.entity.FeedLoss;
import com.bingo.entity.dto.DailyLoss;
import com.bingo.entity.dto.everyDayForm.EveryDayFeedLoss;
import com.bingo.entity.dto.FeedGainWeight;
import com.bingo.entity.dto.resp.FeedLossRecord;
import com.bingo.entity.dto.resp.RespSiteFeedLoss;

import java.sql.Date;
import java.util.List;

public interface FeedLossService extends IService<FeedLoss> {
    //新增食耗记录
    R add(String poolNo, Double feed, Integer loss, Double lossWeight,Date date,String userId);

    //按塘号与时间段查询食耗记录
    List<EveryDayFeedLoss> selectEveryDayFeedLoss(List<String> poolNos, Date startTime, Date endTime);

    //查询本期增重和损耗
    FeedGainWeight selectWeightIncrease(String poolNo, Date startTime, Date endTime, DailyLoss dailyLoss);

    //查场的食耗记录
    List<RespSiteFeedLoss> selectSiteFeedLoss(List<String> siteNos, Date startTime, Date endTime);

    //查询食耗记录
    List<FeedLossRecord> selectFeedLossRecord(List<String> poolNos, Date startTime, Date endTime, String userId);
}
